package multithread;

public class ThreadTest {

    public synchronized int test1(){
        int data = 1;
        try {
            wait();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return data;
    }

//    public void test2(){
//        synchronized (this.test1){
//
//        }
//
//    }

    public static void main(String[] args) {

    }





}
